package com.example.farmeri.ui.login;

import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.example.farmeri.R;
import com.example.farmeri.tools.grantUtils;

import butterknife.ButterKnife;
import butterknife.OnClick;

public class LoginActivity extends AppCompatActivity {


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        ButterKnife.bind(this);
        //获取读写权限
        grantUtils.isGrantExternalRW(this);
    }

    /**
     * 跳转登录
     */
    @OnClick(R.id.signIn)
    void signIn(){
        startActivity(new Intent(this,SignInActivity.class));
    }

    /**
     * 跳转注册
     */
    @OnClick(R.id.signUp)
    void singUp(){
        startActivity(new Intent(this,SignUpActivity.class));
    }

}
